package org.example.workbench.service.impl;

import org.example.workbench.domain.ClueActivityRelation;
import org.example.workbench.mapper.ClueActivityRelationMapper;
import org.example.workbench.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("ClueActivityRelationService")
public class ClueActivityRelationImpl implements ClueActivityRelationService {
    @Autowired
    private ClueActivityRelationMapper clueActivityRelationMapper;

    @Override
    public int deleteRelationByActivityIdAndClueId(ClueActivityRelation clueActivityRelation) {
        return clueActivityRelationMapper.deleteRelationByActivityIdAndClueId(clueActivityRelation);
    }

    @Override
    public int insertRelations(List<ClueActivityRelation> relationList) {
        return clueActivityRelationMapper.insertRelations(relationList);
    }
}
